<div class="postTerms view">
<div class="related">
    <h3><?php printf(__('Related Posts Under Term: %s', true), $postTerm['PostTerm']['name']);?></h3>
    <?php if (!empty($postTerm['Post'])):?>
    <!-- Table Content Area -->
    <table class="table fixed">
        <thead>
            <tr>
                <th width="5%" class="checkbox"><input type="checkbox" class="checkbox"/></th>
                <th width="10%"><?php __('Id'); ?></th>
                <th width="50%"><?php __('Title'); ?></th>
                <th width="15%"><?php __('Create Date'); ?></th>
                <th width="20%" class="actions"><?php __('Actions');?></th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th  width="3%" class="checkbox"><input type="checkbox" class="checkbox"/></th>
                <th><?php __('Id'); ?></th>
                <th><?php __('Title'); ?></th>
                <th><?php __('Create Date'); ?></th>
                <th class="actions"><?php __('Actions');?></th>
            </tr>
        </tfoot>
        <tbody>
            <?php foreach ($postTerm['Post'] as $i=>$post):
                $class = $i % 2 == 0 ? ' class="altrow"' : ''; ?>
            <tr<?php echo $class;?>>
                <td class="checkbox"><input type="checkbox" class="checkbox"/></td>
                <td><?php echo $post['id'];?></td>
                <td><?php echo $post['title'];?></td>
                <td><?php echo date('Y/m/d', strtotime($post['created']));?></td>
                <td class="actions">
                    <?php echo $html->link(__('View', true), array('controller' => 'posts', 'action' => 'view', $post['id'])); ?>
                    <?php echo $html->link(__('Edit', true), array('controller' => 'posts', 'action' => 'edit', $post['id'])); ?>
                    <?php echo $html->link(__('Delete', true), array('controller' => 'posts', 'action' => 'delete', $post['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $post['id'])); ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <?php else: ?>
        <p class="faq"><?php __('There are no post under this PostTerm'); ?></p>
    <?php endif; ?>
</div>
</div>